<?php /* Smarty version 2.6.13, created on 2011-05-23 16:11:26
         compiled from order-exchange.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'order-exchange.tpl', 45, false),)), $this); ?>
<div class="wrapper fr-content">
    	<div class="fr-selectbox">
        	<span class="left name">
            	Order Filter:
            </span>
            <select name="order_filter" class="left selectbox">
            	<option>--- Select Orders</option>
            </select>	
            <span class="left name">
            	Source Currency:
            </span>
            <select name="source_currency" class="left selectbox">
            	<option>--- Select Source Currency</option>
                <?php $_from = $this->_tpl_vars['ALLSRCECURRENCY']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['src'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['src']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['src']['iteration']++;
?>
              
                <option id='<?php echo $this->_tpl_vars['item']->bank_id; ?>
' value='<?php echo $this->_tpl_vars['item']->bank_id; ?>
'> <?php echo $this->_tpl_vars['item']->bank_name; ?>
 </option>
                              
          		<?php endforeach; endif; unset($_from); ?>
            </select>
            <span class="left name">
            	Dest Currency:
            </span>
            <select name="dest_currency" class="left selectbox">
            	<option>--- Select Dest Currency</option>
                <?php $_from = $this->_tpl_vars['ALLECURRENCY']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['src'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['src']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['src']['iteration']++;
?>
              
                <option id='<?php echo $this->_tpl_vars['item']->id; ?>
' value='<?php echo $this->_tpl_vars['item']->id; ?>
'> <?php echo $this->_tpl_vars['item']->ecurrency_name; ?>
 </option>
                              
          		<?php endforeach; endif; unset($_from); ?>
            </select>
            <div class="clear"></div>
        </div>	
        <div class="fr-grid">
        	<table width="100%" cellpadding="0" cellspacing="0">
            	<tr>
                	<th width="5%" style="text-align:center"><input type="checkbox" /></th>
                    <th width="19%">Order Number</th>
                    <th width="19%">Source Currency</th>
                    <th width="19%">Source Amount</th>
                    <th width="19%">Destination Currency</th>
                    <th width="19%">Destination Amount</th>
                </tr>	
                <tbody id="buytable">
					<?php $_from = $this->_tpl_vars['ALLEXCHANGE']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cat'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['cat']['iteration']++;
?>
                    	<tr class="grid<?php echo smarty_function_cycle(array('values' => ",grey"), $this);?>
">
                            <td width="5%" style="text-align:center"><input type="checkbox" /></td>
                            <td width="19%"><?php echo $this->_tpl_vars['item']->exchange_id; ?>
</td>
                            <td width="19%"><?php echo $this->_tpl_vars['item']->ecurrency_name_spend; ?>
</td>
                            <td width="19%"><?php echo $this->_tpl_vars['item']->spend_amount; ?>
</td>
                            <td width="19%"><?php echo $this->_tpl_vars['item']->ecurrency_name_receive; ?>
</td>
                            <td width="19%"><?php echo $this->_tpl_vars['item']->receive_amount; ?>
</td>
                        </tr>	
                    <?php endforeach; endif; unset($_from); ?>
                </tbody>    
        	</table>
            <div class="fr-action">
            	<div class="action left">
                </div>
                <div class="fr-sharepage right">
                	<?php if ($this->_tpl_vars['ALLEXCHANGE']['TOTALPAGE'] > '0'): ?>
                    <div>			
                                    
                              <div style="text-align:right; float:right" ><?php echo $this->_tpl_vars['ALLEXCHANGE']['FIRST']; ?>
 <?php echo $this->_tpl_vars['ALLEXCHANGE']['PRE']; ?>
&nbsp;<?php echo $this->_tpl_vars['ALLEXCHANGE']['LISTPAGE']; ?>
  <?php if ($_SESSION['LC_ALL'] == 'en'): ?>Pages<?php else: ?>Trang<?php endif; ?> &nbsp; <?php echo $this->_tpl_vars['ALLEXCHANGE']['TOTALPAGE']; ?>
 &nbsp;                   
                                  &nbsp;<?php echo $this->_tpl_vars['ALLEXCHANGE']['NEXT']; ?>
 <?php echo $this->_tpl_vars['ALLEXCHANGE']['LAST']; ?>
         
                              </div>
                              <div style="clear:both"></div>		
                    </div>	     
                    <?php endif; ?>
                </div>
                <div class="clear"></div>
            </div>
        </div>
   
	</div>